package com.gmp.product.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gmp.product.domain.WorkDispatch;

/**
 * 派单Mapper接口
 *
 * @author Koi
 * @date 2025-10-10
 */
public interface WorkDispatchMapper extends BaseMapper<WorkDispatch> {
    /**
     * 查询派单
     *
     * @param id 派单主键
     * @return 派单
     */
    public WorkDispatch selectWorkDispatchById(String id);

    /**
     * 查询派单列表
     *
     * @param workDispatch 派单
     * @return 派单集合
     */
    public List<WorkDispatch> selectWorkDispatchList(WorkDispatch workDispatch);

    /**
     * 新增派单
     *
     * @param workDispatch 派单
     * @return 结果
     */
    public int insertWorkDispatch(WorkDispatch workDispatch);

    /**
     * 修改派单
     *
     * @param workDispatch 派单
     * @return 结果
     */
    public int updateWorkDispatch(WorkDispatch workDispatch);

    /**
     * 删除派单
     *
     * @param id 派单主键
     * @return 结果
     */
    public int deleteWorkDispatchById(String id);

    /**
     * 批量删除派单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkDispatchByIds(String[] ids);
}
